From: Florian Müllner Date: Thu, 1 Jul 2010 20:58:25 +0000 (+0200) Subject: Enable side-by-side tiling X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9739 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a2553f48e21fc56ddbe989c17ba94baa3ef19fc9;p=gnome-shell.git Enable side-by-side tiling Override the metacity schema for side-by-side tiling to change the default behavior when running mutter in GNOME Shell. https://bugzilla.gnome.org/show_bug.cgi?id=606260 --- diff --git a/data/gnome-shell.schemas b/data/gnome-shell.schemas index d6a7dbfe6..5798a3edb 100644 --- a/data/gnome-shell.schemas +++ b/data/gnome-shell.schemas @@ -43,5 +43,24 @@ + + /schemas/desktop/gnome/shell/windows/side_by_side_tiling + /desktop/gnome/shell/windows/side_by_side_tiling + gnome-shell + bool + true + + enable side-by-side tiling when dropping windows on screen edges + + If enabled, dropping windows on screen edges maximizes them + vertically and resizes them horizontally to cover half of the + available area. + + This key overrides /apps/metacity/general/side_by_side_tiling when + running GNOME Shell. + + + + diff --git a/src/gnome-shell-plugin.c b/src/gnome-shell-plugin.c index 3b78bd80f..227644f09 100644 --- a/src/gnome-shell-plugin.c +++ b/src/gnome-shell-plugin.c @@ -158,6 +158,8 @@ gnome_shell_plugin_init (GnomeShellPlugin *shell_plugin) "/desktop/gnome/shell/windows/attach_modal_dialogs"); meta_prefs_override_preference_location ("/apps/metacity/general/button_layout", "/desktop/gnome/shell/windows/button_layout"); + meta_prefs_override_preference_location ("/apps/metacity/general/side_by_side_tiling", + "/desktop/gnome/shell/windows/side_by_side_tiling"); } static void